# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=paraxor-st
pkgver=0.4.1
pkgrel=2
pkgdesc="A simple virtual terminal emulator for X (paraxor's fork)"
url="http://st.suckless.org"
arch=('x86_64' 'aarch64')
license=('MIT')
depends=('libxext' 'libxft')
makedepends=('ncurses' 'git')
conflicts=('st')
provides=('st')
source=("$pkgname::git+http://github.com/paraxor/st")
sha512sums=('SKIP')

build() {
  cd $pkgname

	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd $pkgname

  make PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install

  install -Dm 644 -t "$pkgdir/usr/share/doc/st/" README
	install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/st/LICENSE"
}

